package io.renren.modules.user.dao;

import io.renren.modules.user.entity.TPeopleFireDetachmentEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 支队类型表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-08-09 13:03:54
 */
@Mapper
public interface TPeopleFireDetachmentDao extends BaseMapper<TPeopleFireDetachmentEntity> {

    /*
    * 查询支队
    * */
    List<TPeopleFireDetachmentEntity> listDept(@Param("parentId") String parentId,@Param("squadron") String squadron);


    /*
     * 查询中队
     * */
    List<TPeopleFireDetachmentEntity> listZDept(@Param("parentId") String parentId,@Param("deptId")String deptId);


    TPeopleFireDetachmentEntity  findFireDetachment(@Param("detachment")String detachment);

    /**
     * 组织架构
     * @param params
     * @return
     */
    List<TPeopleFireDetachmentEntity> organizationalStructure(Map<String, Object> params);
}
